#!/usr/bin/env python
#-*- coding: utf8 -*-

from __init__ import *
from dbcarta import *

root = Tk()

dbcarta = dbCarta(root, project=1)
dbcarta.centerCarta([[45,20]])

#dbcarta.loadCartaWKT([('hello',"LINESTRING(0 0,100 1,150 62)",'world')])
dbcarta.loadCartaWKT([('gg',"GEOMETRYCOLLECTION(MULTIPOINT(8 8,34 56,87 54),POLYGON( (14 80,4 70,12 70,13 74,15 74,16 70,24 70,14 80),(14 77,13 75,15 75,14 77) ),POLYGON( (-148 80,-148 70,-128 73,-142 75,-128 77,-148 80),(-145 78,-145 75.5,-138 77,-145 78),(-145 74,-145 71.5,-138 73,-145 74) ))",'A')])

#dbcarta.slider.var.set(dbcarta.slider.get() + dbcarta.slider['resolution'] * 3)
#dbcarta.scaleCarta()

root.mainloop()